//CIRL GPU Vertex Program: Derek Anderson and Robert Luke
// very simple vertex shader

void main()
{
	vec4 tmp = vec4(gl_Vertex);
	gl_FrontColor = gl_Color;
	if ( abs(gl_Color.r - 0.7) < 0.01 && abs(gl_Color.g - 0.7) < 0.01 && abs(gl_Color.b - 0.7) < 0.01)
		tmp.z -=0.01; 
	gl_Position = gl_ModelViewProjectionMatrix * tmp;
	//gl_Position = gl_Vertex;
}
